package com.ddw.meedeeuh.shared.database;

/**
 * Represents a database callback from an asynchronous database request
 * @author cmcnicholas
 *
 * @param <T> the result type of the database request
 */
public interface DatabaseCallback<T> {

	/**
	 * Method raised on success of the database query
	 * @param result the result from the query
	 */
	public void onSuccess(T result);

	/**
	 * Method raised on failure of the database query
	 * @param e the exception raised
	 */
	public void onFailure(Throwable e);

}
